package com.ruoyi.temu.mapper;

import java.util.List;
import com.ruoyi.temu.domain.TemuSubPurchaseOrder;
import com.ruoyi.temu.domain.TemuSubPurchaseOrderSku;

/**
 * 备货单Mapper接口
 * 
 * @author ruoyi
 * @date 2023-09-25
 */
public interface TemuSubPurchaseOrderMapper 
{
    /**
     * 查询备货单
     * 
     * @param subPurchaseOrderSn 备货单主键
     * @return 备货单
     */
    public TemuSubPurchaseOrder selectTemuSubPurchaseOrderBySubPurchaseOrderSn(String subPurchaseOrderSn);

    /**
     * 查询备货单列表
     * 
     * @param temuSubPurchaseOrder 备货单
     * @return 备货单集合
     */
    public List<TemuSubPurchaseOrder> selectTemuSubPurchaseOrderList(TemuSubPurchaseOrder temuSubPurchaseOrder);

    /**
     * 新增备货单
     * 
     * @param temuSubPurchaseOrder 备货单
     * @return 结果
     */
    public int insertTemuSubPurchaseOrder(TemuSubPurchaseOrder temuSubPurchaseOrder);

    /**
     * 修改备货单
     * 
     * @param temuSubPurchaseOrder 备货单
     * @return 结果
     */
    public int updateTemuSubPurchaseOrder(TemuSubPurchaseOrder temuSubPurchaseOrder);

    /**
     * 删除备货单
     * 
     * @param subPurchaseOrderSn 备货单主键
     * @return 结果
     */
    public int deleteTemuSubPurchaseOrderBySubPurchaseOrderSn(String subPurchaseOrderSn);

    /**
     * 批量删除备货单
     * 
     * @param subPurchaseOrderSns 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTemuSubPurchaseOrderBySubPurchaseOrderSns(String[] subPurchaseOrderSns);

    /**
     * 批量删除备货单sku信息
     * 
     * @param subPurchaseOrderSns 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTemuSubPurchaseOrderSkuBySubPurchaseOrderSns(String[] subPurchaseOrderSns);
    
    /**
     * 批量新增备货单sku信息
     * 
     * @param temuSubPurchaseOrderSkuList 备货单sku信息列表
     * @return 结果
     */
    public int batchTemuSubPurchaseOrderSku(List<TemuSubPurchaseOrderSku> temuSubPurchaseOrderSkuList);
    

    /**
     * 通过备货单主键删除备货单sku信息信息
     * 
     * @param subPurchaseOrderSn 备货单ID
     * @return 结果
     */
    public int deleteTemuSubPurchaseOrderSkuBySubPurchaseOrderSn(String subPurchaseOrderSn);
}
